/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.com.pps.web.bean.common;

import java.io.Serializable;

/**
 *
 * @author Dai
 */
public class NavigationBean implements Serializable{

    private String location = "HOME";
    private boolean isCourse;
    private boolean isPupil;
    private boolean isTeacher;
    private boolean isFinance;

    public String getLocation() {
        return location;
    }

    public String gotoHome() {
        System.out.println("gotoHome");
        location = "HOME";
        return "success";
    }

    public String gotoCourse() {
        System.out.println("gotoCourse");
        location = "COURSE";
        return "success";
    }

    public String gotoPupil() {
        location = "PUPIL";
        return "success";
    }

    public String gotoTeacher() {
        location = "TEACHER";
        return "success";
    }

    public String gotoFinance() {
        location = "FINANCE";
        return "success";
    }
}
